﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(ts_billoutMetadata))]//使用ts_billoutMetadata对ts_billout进行数据验证
    public partial class ts_billout : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        [ScaffoldColumn(true)]
        [Display(Name = "商品详细", Order = 1)]
        public string GoodsDetail { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "供应商", Order = 2)]
        public string c_vendor { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "品名", Order = 3)]
        public string c_desc { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "规格", Order = 4)]
        public string c_model { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "单位", Order = 5)]
        public string c_unit { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "编号", Order = 6)]
        public string c_code { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "数量", Order = 7)]
        public string allquant { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "金额", Order = 8)]
        public string allamount { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "单价", Order = 8)]
        public string f_price { get; set; }
          
        #endregion

    }
    public class ts_billoutMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "Id", Order = 1)]
			public object Id { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "类型", Order = 2)]
			[StringLength(4, ErrorMessage = "长度不可超过4")]
			public object c_type { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "序号", Order = 3)]
			[Range(0,2147483646, ErrorMessage="数值超出范围")]
			public int? i_no { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "日期", Order = 4)]
			[DataType(DataType.DateTime,ErrorMessage="时间格式不正确")]
			[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")]

			public DateTime? dt_dt { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "仓库", Order = 5)]
			[StringLength(20, ErrorMessage = "长度不可超过20")]
			public object c_base { get; set; }

			[ScaffoldColumn(true)]
            [Display(Name = "供应商", Order = 6)]
			[StringLength(36, ErrorMessage = "长度不可超过36")]
			public object c_id { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "原始单号", Order = 7)]
			[StringLength(15, ErrorMessage = "长度不可超过15")]
			public object c_orgno { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "采购人", Order = 8)]
			[StringLength(8, ErrorMessage = "长度不可超过8")]
			public object c_agency { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "保管员", Order = 9)]
			[StringLength(8, ErrorMessage = "长度不可超过8")]
			public object c_keeper { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "操作员", Order = 10)]
			[StringLength(8, ErrorMessage = "长度不可超过8")]
			public object c_clerk { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "审核人", Order = 11)]
			[StringLength(8, ErrorMessage = "长度不可超过8")]
			public object c_audi { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "备注", Order = 12)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object c_comment { get; set; }

            [ScaffoldColumn(true)]
            [Display(Name = "状态", Order = 13)]
            [StringLength(10, ErrorMessage = "长度不可超过10")]
            public object i_sign { get; set; }


    }


}

